import cv2
red_H = 1
blue_H = 106

img = cv2.imread('blue.png')[-40:, -40:, :]
cv2.imshow('o', img)
img_hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
H, S, V = cv2.split(img_hsv)
print(H.shape, S.shape, V.shape)
h_val = H[0, 0]
print(h_val)
cv2.waitKey(0)
cv2.destroyAllWindows()